icon-browser: Install desktop file and appdata
authorMatthias Clasen <mclasen@redhat.com>
Wed, 29 Jul 2020 21:42:49 +0000 (17:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 29 Jul 2020 21:42:49 +0000 (17:42 -0400)
That is needed to make the flatpak build in our
ci happy.

demos/icon-browser/meson.build
demos/icon-browser/org.gtk.IconBrowser4.appdata.xml [new file with mode: 0644]

index ac7b84aa90f2206e3b7b36c88bd29332c282dc88..beefebba3030bede776c35e552237af07373d6df 100644 (file)
@@ -18,3 +18,19 @@ executable('gtk4-icon-browser',
            gui_app: true,
            link_args: extra_demo_ldflags,
            install: true)
+
+# icons
+icontheme_dir = join_paths(gtk_datadir, 'icons/hicolor')
+
+foreach size: ['scalable', 'symbolic']
+  install_subdir('data/' + size,
+    install_dir: icontheme_dir
+  )
+endforeach
+
+# desktop file
+install_data('org.gtk.IconBrowser4.desktop', install_dir: gtk_applicationsdir)
+
+# appdata
+install_data('org.gtk.IconBrowser4.appdata.xml', install_dir: gtk_appdatadir)
+
diff --git a/demos/icon-browser/org.gtk.IconBrowser4.appdata.xml b/demos/icon-browser/org.gtk.IconBrowser4.appdata.xml
new file mode 100644 (file)
index 0000000..838449a
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+  <id>org.gtk.IconBrowser4.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>LGPL-2.0+</project_license>
+  <name>GTK Icon Browser</name>
+  <summary>Program to browse themed icons</summary>
+  <description>
+    <p>
+      GTK Icon Browser is a simple application to show themed icons that
+      are available on the system.
+    </p>
+  </description>
+  <screenshots>
+  </screenshots>
+  <kudos>
+    <kudo>HiDpiIcon</kudo>
+    <kudo>ModernToolkit</kudo>
+  </kudos>
+  <url type="homepage">https://www.gtk.org</url>
+  <translation type="gettext">gtk-4.0</translation>
+  <update_contact>matthias.clasen_at_gmail.com</update_contact>
+  <developer_name>Matthias Clasen and others</developer_name>
+  <releases>
+    <release version="3.94.0" date="2018-06-25">
+      <description>
+        <p>A new developers snapshot towards GTK 4.0.</p>
+      </description>
+    </release>
+  </releases>
+</component>